package pers.amos.eshop.advance.data.aggregation.mq.support;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import pers.amos.eshop.advance.data.aggregation.common.RabbitQueueConstants;
import pers.amos.eshop.advance.data.aggregation.mq.BaseQueueReceiver;


/**
 * @author amos wong
 * @create 2020-12-16 8:59 上午
 */
@RabbitListener(queues = RabbitQueueConstants.AGGREGATION_DATA_CHANGE_QUEUE)
@Component
public class DataChangeAggregationQueueReceiver extends BaseQueueReceiver {

    @RabbitHandler
    protected void process(String message) {
        super.aggregationData(message);
    }
}
